package org.dce.screencapturer.actions.objects;

import java.awt.Font;

import org.dce.screencapturer.util.IconFactory;

@SuppressWarnings("serial")
public class DecreaseFontSizeAction 
	extends FontAction {

	public DecreaseFontSizeAction() {
		super("actions.decreaseFontSize", IconFactory.getIcon("/images/format-text-decrease-size.png"));
	}

	@Override
	protected Font modifyFont(Font font) {
		return font.deriveFont(font.getStyle(), font.getSize()-1);
	}

}
